<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<input type="text" v-focus/>
		</div>
		<script src="js/vue2.5.js"></script>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{
					
				},
				directives:{
					'focus':{
						inserted(el){
							el.focus();
						}
					}
				}
			})
		</script>
	</body>
</html>
